Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / FpHyperlink Class / DoPaint Method / DoPaint(Graphics,Rectangle,String,Color,Color,Font,HorizontalAlignment,VerticalAlignment,LinkArea[],Color,Color,Picture,Boolean[],Boolean,Boolean,StringTrimming) Method
GDI+ graphics surface
Image rectangle
Text of the hyperlink
Background color
Foreground (text) color
Font of hyperlink text
Horizontal alignment
Vertical alignment
Areas that are hyperlinked
Color of hyperlink
Color of the previously-visited hyperlink
Picture (image)
Whether the hyperlink has been clicked (visited) before
Whether the control is locked
Whether to set right to left
StringTrimming setting


In This Topic
    DoPaint(Graphics,Rectangle,String,Color,Color,Font,HorizontalAlignment,VerticalAlignment,LinkArea[],Color,Color,Picture,Boolean[],Boolean,Boolean,StringTrimming) Method
    In This Topic
    Paints the cell.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub DoPaint( _
       ByVal g As Graphics, _
       ByVal r As Rectangle, _
       ByVal text As String, _
       ByVal backColor As Color, _
       ByVal foreColor As Color, _
       ByVal font As Font, _
       ByVal horizontalAlignment As HorizontalAlignment, _
       ByVal verticalAlignment As VerticalAlignment, _
       ByVal areas() As LinkArea, _
       ByVal linkColor As Color, _
       ByVal visitedColor As Color, _
       ByVal pict As Picture, _
       ByVal visited() As Boolean, _
       ByVal bLocked As Boolean, _
       ByVal rightToLeft As Boolean, _
       ByVal trim As StringTrimming _
    ) 
    'Usage
     
    
    Dim g As Graphics
    Dim r As Rectangle
    Dim text As String
    Dim backColor As Color
    Dim foreColor As Color
    Dim font As Font
    Dim horizontalAlignment As HorizontalAlignment
    Dim verticalAlignment As VerticalAlignment
    Dim areas() As LinkArea
    Dim linkColor As Color
    Dim visitedColor As Color
    Dim pict As Picture
    Dim visited() As Boolean
    Dim bLocked As Boolean
    Dim rightToLeft As Boolean
    Dim trim As StringTrimming
     
    FpHyperlink.DoPaint(g, r, text, backColor, foreColor, font, horizontalAlignment, verticalAlignment, areas, linkColor, visitedColor, pict, visited, bLocked, rightToLeft, trim)

    Parameters

    g
    GDI+ graphics surface
    r
    Image rectangle
    text
    Text of the hyperlink
    backColor
    Background color
    foreColor
    Foreground (text) color
    font
    Font of hyperlink text
    horizontalAlignment
    Horizontal alignment
    verticalAlignment
    Vertical alignment
    areas
    Areas that are hyperlinked
    linkColor
    Color of hyperlink
    visitedColor
    Color of the previously-visited hyperlink
    pict
    Picture (image)
    visited
    Whether the hyperlink has been clicked (visited) before
    bLocked
    Whether the control is locked
    rightToLeft
    Whether to set right to left
    trim
    StringTrimming setting
    See Also